package com.alibaba.citrus.ots.b2b.trade.order.facade.common;

/**
 * @author wangxulu
 * @since 2020.08.14 15:45
 */
public class StringConverter {

    public static Long StringToLong(String str) {
         return Long.valueOf(str.replaceAll(" ",""));
    }

    public static Integer StringToInteger(String str) {
        Double d = Double.valueOf(str.replaceAll(" ",""));
        return Integer.valueOf(d.intValue());
    }
}